package com.imot.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.imot.config.DurationToFormattedStringSerializer;
import com.imot.pojo.entity.EmaRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * ClassName: EmaStateVo
 * Description:
 * date: 2023/11/8 15:51
 *
 * @author imot-jiah.wang
 */
@Data
public class EmaStateVo {
    @ApiModelProperty(value = "电机电流 (A), 范围 0.00 到 42.00")
    private Float motorCurrent;

    @ApiModelProperty(value = "电机转速 (RPM), 具体范围未提供")
    private Float motorSpeed;

    @ApiModelProperty(value = "电源电压 (V), 范围 22.00 到 32.00")
    private Float supplyVoltage;

    @ApiModelProperty(value = "温度 (℃), 范围 -20.00 到 150.00, 精度 ±0.2")
    private Float temperature;

    @ApiModelProperty(value = "一周内试验的次数")
    private Float weeklyTests;

    @JsonSerialize(using = DurationToFormattedStringSerializer.class)
    @ApiModelProperty(value = "一周内运行时长")
    private Long weeklyRunTime;

    @ApiModelProperty(value = "目标电流 (A)")
    private Float targetCurrent;

    @ApiModelProperty(value = "目标转速 (RPM)")
    private Float targetRpm;

    @ApiModelProperty(value = "电压阈值下限 (V)")
    private Float minVoltThresh;

    @ApiModelProperty(value = "电压阈值上限 (V)")
    private Float maxVoltThresh;

    @ApiModelProperty(value = "温度阈值下限 (℃)")
    private Float minTempThresh;

    @ApiModelProperty(value = "温度阈值上限 (℃)")
    private Float maxTempThresh;

    @ApiModelProperty(value = "电流变化百分比")
    private Float changeCurrent;

    @ApiModelProperty(value = "转速变化百分比")
    private Float changeSpeed;

    @ApiModelProperty(value = "一周试验次数环比上周")
    private Float wkTestChange;

    @ApiModelProperty(value = "一周运行时长环比上周 (%)")
    private Float wkRunTimeChg;
}

